package org.shiro.auth.client.filter;

import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigUtil {

  private static String active;

  private static String proHost  = "http://192.168.31.110:8082";
  private static String testHost = "http://localhost:8082";

  public static void setActive(String active) {
    ConfigUtil.active = active;
  }

  public static String getHost() {
    boolean isPro = "pro".equalsIgnoreCase(active);
    return isPro ? proHost : testHost;
  }

}
